package JCT_Chapter_03;
import java.util.*;

public class Sales {
    public static void main(String[] args) {
        //  read inputs
        Scanner in = new Scanner(System.in);

        System.out.print("How much is your sales?");
        double yourSales = in.nextDouble();

        System.out.print("How much is your target?");
        double target = in.nextDouble();

        String performance = "nothing";
        double bonus = 0;
        if(yourSales >= 2 * target) {
            performance = "Excellent";
            bonus = 1000;
        } else if (yourSales >= 1.5 * target) {
            performance = "Fine";
            bonus = 500;
        } else if (yourSales >= target) {
            performance = "Satisfactory";
            bonus = 100;
        } else {
            performance = "You're fired!";
            bonus = 0;
        }
        System.out.println("Your performance is " + performance + ", your bonus is " + bonus);
    }
}
